/**
 * 
 */
package com.holystone.orca.sys.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.holystone.orca.sys.common.SystemConstant;
import com.holystone.orca.sys.mybatis.dao.SysPrivilegeMapper;
import com.holystone.orca.sys.mybatis.model.SysPrivilege;
import com.holystone.orca.sys.service.IStaffPrivilegeService;


/**
 * Copyright (c) 2015, HOLYSTONE Technologies, Inc.
 * All right reserved.
 * @desc:
 * @author:王凯征
 * @date:2015年11月9日 下午7:15:07
 */
@Service(value="staffPrivilegeService")
@Transactional
public class StaffPrivilegeServiceImpl implements IStaffPrivilegeService {
	@Autowired
	private SysPrivilegeMapper sysPrivilegeMapper;
	
	public List<SysPrivilege> getStaffPrivilegeList(Integer staffId) {
		Map<String, String> map=new HashMap<String, String>();
		map.put("staffId", staffId.toString());
		map.put("priState",SystemConstant.PRI_STATE_A );

		List<SysPrivilege> list = sysPrivilegeMapper.getStaffPrivilegeList(map);
		return list;
	}
}
